import Request from '@/apis/request.js'
const baseUrl = '/root'
// 获取用户列表 搜索用户
export const getUserListApi = (params) => {
  return Request.request(Request.GET, baseUrl + '/getinfo', params)
}
// 添加用户
export const postUserApi = (params) => {
  return Request.requestJson(Request.POST, baseUrl + '/add', params)
}
// 修改用户
export const putUserApi = (params) => {
  return Request.requestJson(Request.PUT, baseUrl + '/edit', params)
}
// 删除用户
export const deleteUserApi = (params) => {
  return Request.request(Request.DELETE, baseUrl + '/del/' + params, null)
}
